/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.anism.service;

import javax.ejb.EJB;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.ejb.Stateless;
import org.anism.API.HolidayPlanningLocal;
import org.anism.business.Planning;
import org.anism.entity.Employee;

/**
 *
 * @author user
 */
@WebService(serviceName = "HolidayPlanningService")
@Stateless()
public class HolidayPlanningService {

    @EJB
    private HolidayPlanningLocal holidayPlanning;

    public Planning displayPlanning(String login, String pass) {
        Employee e = holidayPlanning.authenticate(login, pass);
        return holidayPlanning.getPlanning(e.getEmployeeId());
    }
}
